home *** CD-ROM | disk | FTP | other *** search
- @if-using not(ocl-file-np-file)
- @use (ocl-file-np-file)
- ;OCL{{{}}}
- ;OCL{{{ reference description
- @if-using ( FUN-REFERENCE ) ; 1 ;
- OCL replacement for the Origami functions `next-file' and `previous-
- file'.
- @fi
- ;OCL}}}
- ;OCL{{{ n-p-file-jump
- ( deffun ( x ) n-p-file-jump
- ( local
- ( modify-behaviour )
- ( set modify-behaviour +(file-number x 1)
- read-list-file
- )
- )
- )
- ;OCL}}}
- ;OCL{{{ next-file
- ;OCL{{{ reference
- @if-using ( FUN-REFERENCE ) ; 2 ; next-file-ref
- ;OCL{{{ next-file
- Read the next file given in the command line or edited previously,
- saving the current file if required. If there is no next file, the
- list of command line and edited files is used instead.
-
- \fB>>>O_NEXT_FILE<<<\fP tries to reach the same line, you were the
- last time, you edited this file. This command neither changes to
- another buffer nor does it open a new buffer.
- ;OCL}}}
- @fi
- ;OCL}}}
- ( deffun next-file ( n-p-file-jump(1) ) )
- ;OCL}}}
- ;OCL{{{ previous-file
- ;OCL{{{ reference
- @if-using ( FUN-REFERENCE ) ; 2 ; previous-file-ref
- ;OCL{{{ previous-file
- Read the last file given in the command line or edited previously,
- saving the current file if required. If there is no next file, the
- list of command line and edited files is used instead.
-
- \fB>>>O_NEXT_FILE<<<\fP tries to reach the same line, you were the
- last time, you edited this file. This command neither changes to
- another buffer nor does it open a new buffer.
- ;OCL}}}
- @fi
- ;OCL}}}
- ( deffun previous-file ( n-p-file-jump(-1) ) )
- ;OCL}}}
- ;OCL{{{ undeclares
- ( undeclare ( n-p-file-jump ) )
- ;OCL}}}
- @fi
-